.class public Llt/noframe/gpsfarmguide/utils/Validator;
.super Ljava/lang/Object;
.source "Validator.java"


# instance fields
.field private ctx:Landroid/content/Context;


# direct methods
.method public constructor <init>(Landroid/content/Context;)V
    .locals 0

    .line 13
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 14
    iput-object p1, p0, Llt/noframe/gpsfarmguide/utils/Validator;->ctx:Landroid/content/Context;

    return-void
.end method


# virtual methods
.method public isEmpty(Landroid/widget/EditText;)Z
    .locals 2

    .line 23
    invoke-static {p1}, Llt/noframe/gpsfarmguide/utils/Utils;->isEmpty(Landroid/widget/EditText;)Z

    move-result v0

    if-eqz v0, :cond_0

    .line 24
    iget-object v0, p0, Llt/noframe/gpsfarmguide/utils/Validator;->ctx:Landroid/content/Context;

    const v1, 0x7f110160

    invoke-virtual {v0, v1}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, p1, v1}, Llt/noframe/gpsfarmguide/utils/Errors;->setError(Landroid/content/Context;Landroid/widget/EditText;Ljava/lang/String;)V

    const/4 p1, 0x1

    return p1

    :cond_0
    const/4 p1, 0x0

    return p1
.end method
